<?php 
class JVastConfig
{
    static function getConfig()
    {
        $result = array();
        $db = JFactory::getDBO();
        $query = $db->getQuery(true);

        $query->select('a.*');
        $query->from('#__cauhinh AS a');
        
        $db->setQuery($query);
        
        $tmp = $db->loadObjectList();   
        
        if (count($tmp) > 0)
        {
            foreach ($tmp as $row)
            {
                $result[$row->ten] = $row->giatri;
            }
        }     
        
        return $result;
    }     
}